<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
/* @var $this Mage_Catalog_Block_Product_Compare_Sidebar */
?>
<?php 
$_helper = $this->helper('catalog/product_compare');
$_items = $_helper->getItemCount() > 0 ? $_helper->getItemCollection() : null;
?>

    <?php if($_helper->getItemCount() > 0): ?>
		<a class="block-compare" title="<?php echo $this->__('Compare') ?>"  onclick="popWin('<?php echo $_helper->getListUrl() ?>','compare','top:0,left:0,width=820,height=600,resizable=yes,scrollbars=yes')">
			<span class="hd-mobile"><?php echo $this->__('My Compare');?></span> <span class='hidden-n'>(</span><span class="c-item"><?php echo $_helper->getItemCount(); ?></span><span class='hidden-n'>)</span>
		</a>
    <?php else: ?>
        <a class="block-compare no-item-compare"><span class="hd-mobile"><?php echo $this->__('My Compare');?></span><span> <span class='hidden-n'>(</span><span class="c-item">0</span><span class='hidden-n'>)</span></span></a>
    <?php endif; ?>
